package ligne2vie.topos.client.service;

import ligne2vie.topos.shared.bo.TGoogleUser;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The interface {@link SummitService} defines all the methods required to manage users.
 * 
 * @author thuguerre
 * @since 1.0.0
 */
@RemoteServiceRelativePath("user")
public interface UserService extends RemoteService {

	public String createLoginURL(String destinationURL);

	public String createLoginURL(String destinationURL, String authDomain);

	public String createLogoutURL(String destinationURL);

	public String createLogoutURL(String destinationURL, String authDomain);

	public TGoogleUser getCurrentUser();
	
	public boolean isUserAdmin();

	public boolean isUserLoggedIn();
}
